<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<base href="<%=basePath %>" />
    <link rel="stylesheet" type="text/css" href="jquery-easyui-1.4.1/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="jquery-easyui-1.4.1/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="jquery-easyui-1.4.1/themes/color.css">
	<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
	<script type="text/javascript" src="layer/layer.js"></script>
    <script type="text/javascript" src="jquery-easyui-1.4.1/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="jquery-easyui-1.4.1/locale/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript" src="js/admin/role.js"></script>
</head>
<body>
<div style="height: 70px; width: 100%;">

</div>
	<div id="toolbar">
		<c:forEach items="${list}" var="item">
			${item}
		</c:forEach>
	</div>
	<table id="role_table"></table>
	<!-- 菜单隐藏div -->
	<div id="menudlg" class="easyui-dialog" data-options="iconCls:'icon-save',resizable:true,modal:true" style="width: 800px;height: 600px; padding: 10px 20px" closed="true"
           buttons="#menu-buttons" align="center">
           <table>
           	<tr>
           		<td>
           			<input title="全选/反选" type="checkbox" onclick="treeChecked(this)"/>全选/反选
           		</td>
           	</tr>
           	<tr><td>&nbsp;</td></tr>
           </table>
           	<ul id="menu"></ul>
           <div id="menu-buttons">
	    		<label id="menusaveUrl" closed="true"></label>
		        <a href="javascript:void(0)" class="easyui-linkbutton c6" iconCls="icon-ok" onclick="saveMenuBtn();" style="width:90px">保存</a>
		        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="cancelMenuBtn();" style="width:90px">取消</a>
    	   </div>
   </div>
   <div id="roledlg" class="easyui-dialog" data-options="iconCls:'icon-save',resizable:true,modal:true" style="width: 400px;height: 300px; padding: 10px 20px" closed="true"
           buttons="#role-buttons">
           <div align="center">
     <form id="rolefm" class="easyui-form" data-options="novalidate:true">
     	<table>
     		<tr>
           		<td><label>身份类型:</label></td>
           		<td> <input name="roleName" id="roleName" class="easyui-textbox" required="true"></td>
            </tr>
            <tr>
           		<td>&nbsp;</td>
           		<td>&nbsp;</td>
            </tr>
            <tr>
           		<td><label>身份描述:</label></td>
           		<td> <input name="roleDescription" id="roleDescription" class="easyui-textbox" required="true"></td>
            </tr>
     	</table>
     </form> 
      </div>     
    <div id="role-buttons">
    	<label id="saveUrl" closed="true"></label>
        <a href="javascript:void(0)" id="save" class="easyui-linkbutton c6" iconCls="icon-ok" onclick="roleSave();" style="width:90px">保存</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="roleCancel();" style="width:90px">取消</a>
    </div>
   </div>
   
</body>
</html>